package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "T_DVC_TRANSPORT_COMPANY", schema = "oa", catalog = "")
public class DeviceTransportCompanyEntity extends BaseEntity {
    private String transportCompany ;
    private String contact ;
    private String contactTel;
    private String companyId ;

    public String getTransportCompany() {
        return transportCompany;
    }

    public void setTransportCompany(String transportCompany) {
        this.transportCompany = transportCompany;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj=new JSONObject();
        obj.put("ID",this.getId());
        obj.put("CREATE_TIME",this.getCreateTime());
        obj.put("UPDATE_TIME",this.getUpdateTime());
        obj.put("TRANSPORT_COMPANY",this.getTransportCompany());
        obj.put("CONTACT",this.getContact());
        obj.put("CONTACT_TEL",this.getContactTel());
        obj.put("COMPANY_ID",this.getCompanyId());
        return obj;
    }

    @Override
    public String getTableName() {
       return "T_DVC_TRANSPORT_COMPANY";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj=new JSONObject();
        obj.put("ID","id");
        obj.put("TRANSPORT_COMPANY","transportCompany");
        obj.put("CONTACT","contact");
        obj.put("CONTACT_TEL","contactTel");
        obj.put("COMPANY_ID","companyId");
        return obj;
    }
}
